package com.service.impl;

import com.dao.UserDao;
import com.dto.User;
import com.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by hxw on 2017-6-14.
 */
@Service("userServiceImpl")
public class UserServiceImpl implements UserService {
    @Resource(name="userDaoImpl")
    UserDao ud;
    @Override
    public String register(User user) {

        return ud.register(user);
    }

    @Override
    public String login(User user) {
        return ud.login(user);
    }
}
